package bd.com.escenic.flexilunch.model;

/**
 * $URL: http://flexilunch.googlecode.com/svn/trunk/common/src/main/java/bd/com/escenic/flexilunch/model/RoleImpl.java $
 * $Id: RoleImpl.java 14 2009-06-03 09:39:19Z shihab.uddin@gmail.com $
 * $Date: 2009-06-03 09:39:19 +0000 (Wed, 03 Jun 2009) $
 * $Author: shihab.uddin@gmail.com $
 * $Revision: 14 $
 */

import java.util.Set;

/**
 * $Id: RoleImpl.java 14 2009-06-03 09:39:19Z shihab.uddin@gmail.com $.
 *
 * @author <a href="mailto:shihab.uddin@gmail.com">Shihab Uddin</a>
 * @version $Revision: 14 $
 */
public class RoleImpl extends AbstractEntity implements Role {

  private Set<Permission> mPermissions;
  private Set<User> mUsers;

  /**
   * {@inheritDoc}
   */
  @Override
  public final Type getType() {
    return Type.ROLE;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public Set<Permission> getPermissions() {
    return mPermissions;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public void setPermissions(final Set<Permission> pPermissions) {
    mPermissions = pPermissions;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public Set<User> getUsers() {
    return mUsers;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public void setUsers(final Set<User> pUsers) {
    mUsers = pUsers;
  }
}
